﻿<!DOCTYPE html>
<html>
<head>
    <title>CGI</title>
</head>
<body>
    <h1>Our Page</h1>
    <!--01-->
    <script>
        var lineItemCount = 3;
        for (var i = 0; i < lineItemCount; i++)
            console.log(i);
    </script>
    <!--02-->
    <!--<script>
        var lineItemCount = 3;
        var i = 0;
        for (; i < lineItemCount; i++)
            console.log(i);
    </script>-->
    <!--03-->
    <!--<script>
        var lineItemCount = 3;
        var i = 0;
        for (; i < lineItemCount;)
            console.log(i++);
    </script>-->
    <!--04-->
    <!--<script>
        var lineItemCount = 5;
        for (var i = 0; i < lineItemCount; i++) {
            console.log(i);
            if (i == 1)
                break;
        }
    </script>-->
    <!--05-->
    <!--<script>
        var lineItemCount = 5;
        for (var i = 0; i < lineItemCount; i++) {
            if (i == 1)
                continue;
            console.log(i);
        }
    </script>-->
    <!--06-->
    <!--<script>
        var lineItemCount = 5;
        outerLoop:
            for (var i = 0; i < lineItemCount; i++) {
                for (var j = 0; j < 3; j++) {
                    if (j == 1)
                        continue outerLoop;
                }
                console.log(i);
            }
    </script>-->
    <!--07 JSON-->
    <!--<script>
        var lineItem = {
            product: 'Widget 1',
            quantity: 4,
            price: 9.50
        };
        for (var field in lineItem) {
            console.log(field);
            //console.log(field + " : " + lineItem[field]);
        }
    </script>-->
</body>
</html>